/**
 * Copyright &copy; 2015-2020 <a href="http://www.easyhis.com/">easyhis</a> All rights reserved.
 */
package com.easy.dfcshop.entity;

import com.easy.common.utils.excel.annotation.ExcelField;
import com.easy.core.persistence.DataEntity;
import com.easy.modules.sys.entity.User;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 广告Entity
 * @author waylen chi
 * @version 2018-01-17
 */
public class Advert extends DataEntity<Advert> {
	
	private static final long serialVersionUID = 1L;
	private String id;		// 广告ID，自增
	private Integer advertId;		// 广告ID，自增
	private String position;		// 广告位置
	private String advertName;		// 类型名称
	private Integer advertImgid;		// 广告图片id
	private Integer cateId;		// 广告类型ID
	private BigDecimal amnt;		// 广告费用
	private Integer clickLink;		// 链接地址
	private Integer clickNo;		// 点击次数
	private Date startTime;		// 广告投放时间
	private Date endTime;		// 广告结束时间
	private Integer sortNo;		// 排序
	private String advertDesc;		// 广告描述
	private String isUse;		// 是否使用0-未使用  1-已使用
	private String isAudit;		// 审核状态 0-未审核 1-审核同意，2-审核不同意
	private String tradeNo;		// 支付订单号
	private User createBy;		// 创建人
	private Date createTime;		// 创建时间
	private User updateBy;		// 更新人
	private Date updateTime;		// 更新时间
	private String delFlag;		// 删除标志
	
	public Advert() {
		super();
	}

	public Advert(String id){
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@NotNull(message="广告ID，自增不能为空")
	@ExcelField(title="广告ID，自增", align=2, sort=0)
	public Integer getAdvertId() {
		return advertId;
	}

	public void setAdvertId(Integer advertId) {
		this.advertId = advertId;
	}
	
	@ExcelField(title="广告位置", align=2, sort=1)
	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}
	
	@ExcelField(title="类型名称", align=2, sort=2)
	public String getAdvertName() {
		return advertName;
	}

	public void setAdvertName(String advertName) {
		this.advertName = advertName;
	}
	
	@ExcelField(title="广告图片id", align=2, sort=3)
	public Integer getAdvertImgid() {
		return advertImgid;
	}

	public void setAdvertImgid(Integer advertImgid) {
		this.advertImgid = advertImgid;
	}
	
	@ExcelField(title="广告类型ID", align=2, sort=4)
	public Integer getCateId() {
		return cateId;
	}

	public void setCateId(Integer cateId) {
		this.cateId = cateId;
	}
	
	@ExcelField(title="广告费用", align=2, sort=5)
	public BigDecimal getAmnt() {
		return amnt;
	}

	public void setAmnt(BigDecimal amnt) {
		this.amnt = amnt;
	}
	
	@ExcelField(title="链接地址", align=2, sort=6)
	public Integer getClickLink() {
		return clickLink;
	}

	public void setClickLink(Integer clickLink) {
		this.clickLink = clickLink;
	}
	
	@ExcelField(title="点击次数", align=2, sort=7)
	public Integer getClickNo() {
		return clickNo;
	}

	public void setClickNo(Integer clickNo) {
		this.clickNo = clickNo;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="广告投放时间", align=2, sort=8)
	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="广告结束时间", align=2, sort=9)
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
	@ExcelField(title="排序", align=2, sort=10)
	public Integer getSortNo() {
		return sortNo;
	}

	public void setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
	}
	
	@ExcelField(title="广告描述", align=2, sort=11)
	public String getAdvertDesc() {
		return advertDesc;
	}

	public void setAdvertDesc(String advertDesc) {
		this.advertDesc = advertDesc;
	}
	
	@ExcelField(title="是否使用0-未使用  1-已使用", align=2, sort=12)
	public String getIsUse() {
		return isUse;
	}

	public void setIsUse(String isUse) {
		this.isUse = isUse;
	}
	
	@ExcelField(title="审核状态 0-未审核 1-审核同意，2-审核不同意", align=2, sort=13)
	public String getIsAudit() {
		return isAudit;
	}

	public void setIsAudit(String isAudit) {
		this.isAudit = isAudit;
	}
	
	@ExcelField(title="支付订单号", align=2, sort=14)
	public String getTradeNo() {
		return tradeNo;
	}

	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}
	
	@ExcelField(title="创建人", align=2, sort=15)
	public User getCreateBy() {
		return createBy;
	}

	public void setCreateBy(User createBy) {
		this.createBy = createBy;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="创建时间", align=2, sort=16)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@ExcelField(title="更新人", align=2, sort=17)
	public User getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(User updateBy) {
		this.updateBy = updateBy;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="更新时间", align=2, sort=18)
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	@ExcelField(title="删除标志", dictType="del_flag", align=2, sort=19)
	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}
	
}